#pragma once
#include"RBTree.hh"


template<class K>
class set
{ 
	struct SetKeyOfT
	{
		const K& operator()(const K& k)
		{
			return k;
		}
	};
public:
	typedef typename RBTree<K, K, SetKeyOfT>::iterator iterator;
	bool Insert(const K& k)
	{
		return _t.Insert(k);
	}
	iterator begin()
	{
		return _t.begin();
	}
	iterator end()
	{
		return _t.end();
	}
private:
	RBTree<K, K, SetKeyOfT> _t;
};